﻿#include "GLLInc.h"
#include "GLLObjCom.h"
#include "GLLObj.h"

namespace GLL
{
	class Object;

	void ObjectComponent::SetObject( Object* obj )
	{
		assert(obj);
		if( ! Ok2Add(obj)){
			SS ss; ss << "Not OK to add animator(" << _name << ") into LvlObj :" << obj->StrID();
			GLL_Throw(ss);
		}
		_obj = obj;
	}




};//GLL
